package com.example.springboot.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.springboot.entity.XCompany;
import com.example.springboot.mapper.XCompanyMapper;
import com.example.springboot.service.IXCompanyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 客户管理 服务实现类
 * </p>
 *
 * @author
 * @since
 */
@Service
public class XCompanyServiceImpl extends ServiceImpl<XCompanyMapper, XCompany> implements IXCompanyService {

    @Autowired
    private XCompanyMapper xCompanyMapper;

    @Override
    public IPage<XCompany> selectByPage(Page<XCompany> page, XCompany company) {
        return xCompanyMapper.selectByPage(page,company);
    }

    @Override
    public List<Map> getContractAmount(String startDt,String EndDt) {
        return xCompanyMapper.getContractAmount(startDt,EndDt);
    }

    @Override
    public List<Map> getCompletionRate(String startDt,String EndDt) {
        return xCompanyMapper.getCompletionRate(startDt,EndDt);
    }

    @Override
    public List<Map> get200dkAmountAndCount(String startDt,String EndDt) {
        return xCompanyMapper.get200dkAmountAndCount(startDt,EndDt);
    }

    @Override
    public List<Map> getDpdhAmount(String startDt,String EndDt) {
        return xCompanyMapper.getDpdhAmount(startDt,EndDt);
    }

    @Override
    public List<Map> getDhkhTop10(String startDt,String EndDt) {
        return xCompanyMapper.getDhkhTop10(startDt,EndDt);
    }

    @Override
    public List<Map> getTopPriority(String startDt,String EndDt) {
        return xCompanyMapper.getTopPriority(startDt,EndDt);
    }

    @Override
    public List<Map> getBdbfCount(String startDt,String EndDt) {
        return xCompanyMapper.getBdbfCount(startDt,EndDt);
    }

    @Override
    public List<Map> getBdBigModelCount(String startDt,String EndDt) {
        return xCompanyMapper.getBdBigModelCount(startDt,EndDt);
    }

    @Override
    public List<Map> get200DkInventory(String startDt,String EndDt) {
        return xCompanyMapper.get200DkInventory(startDt,EndDt);
    }
}
